package org.bite.lesson13;

import java.util.concurrent.ConcurrentHashMap;

/**
 * ConcurrentHashMap的使用
 */
public class Demo1301 {
    public static void main(String[] args) {
        ConcurrentHashMap<Integer, String> hashMap = new ConcurrentHashMap<>();

        hashMap.put(1, "kiku");
        hashMap.put(2, "JJY");

        System.out.println(hashMap.get(1));
        System.out.println(hashMap.get(2));
    }
}
